<?php

namespace App\Provider;

use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
{
    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $files = glob(base_path('routes/*.php'));
        foreach ($files as $file) {
            Route::prefix('')->group($file);
        }
    }
}

